{{for $foo=0 to count($configs["cuslist"])-1 step 50}}
<span class="thread t{{{{$foo/50+1}}}}" {{if $foo>0}}style="display: none"{{/if}}>
    {{for $fi=0 to  49}}
    {{if isset($configs["cuslist"][$foo+$fi])}}
        <div style="height: 16px">
            <div style="width: 192px;float: left;overflow: hidden;height:16px;position: relative;">
                Khách Hàng : {{$configs["cuslist"][$foo+$fi]->CustomerName}}
            </div>
            <div style="width: 280px;float: left;overflow: hidden;height:16px;position: relative;">
                Email : {{$configs["cuslist"][$foo+$fi]->Email}}
            </div>
            <div style="width:  60px;float: left;overflow: hidden;height:16px;position: relative;">
                {{if isset($configs["cuslist"][$foo+$fi]->LastSend) and (strtotime(date("Y-m-d"))-strtotime($configs["cuslist"][$foo+$fi]->LastSend))<60*60*24}}
                    đã gửi
                {{else}}
                    <input value="{{$configs["cuslist"][$foo+$fi]->Email}}" class="chkStaffBonus" type="checkbox" checked="1"/>
                {{/if}}
            </div>
        </div>
    {{/if}}

    {{/for}}
</span>
{{/for}}
<div class="threadpage">
    {{for $foo=0 to count($configs["cuslist"])-1 step 50}}
    <span class="t{{$foo/50+1}} {{if $foo==0}}fwb{{/if}}" style="cursor: pointer;color: blue;" 
          onclick="threadshow({{$foo/50+1}});">{{$foo/50+1}}</span>
    {{/for}}
</div>
